﻿<%@ Page Language="C#" %>
<!DOCTYPE html>
<html lang='zh-CN'>
<%=Aspfm.MainController.PageTool.GetAspx("Aspfm.JSPlugin/BaseHead.aspx") %>
<title>Aspfm表单首页</title>
<style>
	.menu-collapsed{flex:0 0 64px;width: 64px;    border-right: solid 1px #e6e6e6;}
.menu-expanded{flex:0 0 230px;width: 230px;    border-right: solid 1px #e6e6e6;}
</style>

<body>
	<div id='formdesign_Aspfm' style="width:100%;position:absolute;top:0px;bottom: 0px;left:0px;">
		<div class="el-row" id="aspfmrow1-0">
			<!-- 组件HTML：group1 -->
			<div class="el-col" style="width: 100%;background-color: rgb(64, 158, 255);">
				<div style="float: left;line-height: 48px;">
					<!--<a href="/"><img src="../../assets/logo.png" style="padding-left:8px;"></a>-->
				</div>
				<div style="float: left;width:400px;padding-left: 30px;line-height: 48px;">
					<a href="/" style="color: #fff;font-size: 21px;text-decoration:none;"><span>装备集中监控平台·海思光电<span style="color:#FF6C60">平台开发部</span>
						</span></a>
				</div>
				<div style="float: left;">
					<el-row>
						<el-col :span="24">
							<el-menu default-active="1" background-color="#409EFF" text-color="#fff" active-text-color="#ffd04b" mode="horizontal">
								<el-menu-item style="height: 50px; line-height: 50px;" index="1">首页</el-menu-item>
								<el-menu-item style="height: 50px;line-height: 50px;" index="2">工厂列表</el-menu-item>
								<el-menu-item style="height: 50px;line-height: 50px;" index="3">监控台</el-menu-item>
								<el-menu-item style="height: 50px;line-height: 50px;" index="4">系统管理</el-menu-item>
							</el-menu>
						</el-col>
					</el-row>
				</div>
				<div style="float: right;line-height: 48px;padding-right: 30px;">
					<el-dropdown placement="bottom">
						<span class="el-dropdown-link" style="color: #fff;cursor: pointer;">
							<img :src="Aspfm.sysUserAvatar" style="width: 40px;height: 40px;border-radius: 20px;margin: 4px 0px 4px 10px;float: right;" />{{Aspfm.sysUserName}}
						</span>
						<el-dropdown-menu slot="dropdown">
							<el-dropdown-item>黄金糕</el-dropdown-item>
							<el-dropdown-item>狮子头</el-dropdown-item>
							<el-dropdown-item>螺蛳粉</el-dropdown-item>
							<el-dropdown-item disabled>双皮奶</el-dropdown-item>
							<el-dropdown-item divided>蚵仔煎</el-dropdown-item>
						</el-dropdown-menu>
					</el-dropdown>
				</div>
				<div style="float: right;line-height: 48px;padding-right: 15px;">
					<el-button type="text" style="color: #fff;" icon="el-icon-share">分享</el-button>
				</div>
			</div>
		</div>
		<div class="el-row row_custom" id="aspfmrow1-1">
			<!-- 组件HTML：label7 -->
			<div class="el-col col_custom_end " style="width: 100%;display: flex;position: absolute;overflow: hidden;">
				<!--左侧导航-->
				<aside :class="Aspfm.isCollapse?'menu-collapsed':'menu-expanded'">
					<!--展开折叠开关-->
					<div style="background: #428bca;
					text-align: center;
					color: white;
					height: 26px;
					line-height: 30px;"
					 @click.prevent="collapse">
						<i class="el-icon-caret-right" v-show="Aspfm.isCollapse" title="展开"></i>
						<i class="el-icon-caret-left" v-show="!Aspfm.isCollapse" title="收起"></i>
					</div>
					<!--导航菜单-->
					<el-menu default-active="1-4-1" class="el-menu-vertical-demo" :collapse="Aspfm.isCollapse">
						<el-submenu index="1">
							<template slot="title">
								<i class="el-icon-location"></i>
								<span slot="title">导航一</span>
							</template>
							<el-menu-item index="1-4-1">工厂管理</el-menu-item>
							<el-menu-item index="1-4-2">产品</el-menu-item>
						</el-submenu>
					</el-menu>
				</aside>
				<!--右侧内容区-->
				<section style="flex:1;padding: 5px;">
					<div>
						<iframe id="mainiframe" src="http://localhost:33333/MyAspfm/ctrlcxh.aspfm" height="600" frameborder="0" scrolling="auto"
						 width="100%"></iframe>
					</div>
				</section>
			</div>
		</div>
	</div>
</body>
<script>
	Aspfm.Data.defaulthtml = 'main.aspfm';
	/*组件：label2   */
	Aspfm.sysUserAvatar = _path + "Aspfm.JSPlugin/user.jpg";
	Aspfm.sysUserName = '周斌兵';
	Aspfm.isCollapse = true;
	Aspfmfun.logout = logout;
	function logout() {
		alert('退出');
	}
	Aspfmfun.collapse = collapse;
	function collapse() {
		Aspfm.isCollapse = !Aspfm.isCollapse;
	}
	/*组件：button1   */
	Aspfmfun.onBtnbutton1 = onBtnbutton1;
	Aspfm.loadingbutton1 = false;
	function onBtnbutton1() {
		Aspfm.loadingbutton1 = true;//显示loading
	}


	/*sql查询：aliyun_new*/
	Aspfm.Data.aliyun_new = new Object();
	Aspfm.Data.aliyun_new.SqlFiler = "";
	Aspfm.Data.aliyun_new.SqlOrderby = "";
	Aspfm.Data.aliyun_new.page = 1;
	Aspfm.Data.aliyun_new.size = 100;//0表示不分页，查询全部
	Aspfm.Data.aliyun_new.total = 100;

	function initsqlaliyun_new() {

	}
	function InitDataaliyun_new(data) {
		if (data) {

		}
	}
	initsqlaliyun_new();//自动加载，可屏蔽。

</script>
<%=Aspfm.MainController.PageTool.GetAspx("Aspfm.JSPlugin/BaseEndJs.aspx") %>
<script>
	function changeFrameHeight() {
		var ifm = document.getElementById("mainiframe");
		ifm.height = document.documentElement.clientHeight - $('#aspfmrow1-0').height() - 15;
	}
	window.onresize = function () { changeFrameHeight(); }
	$(function () { changeFrameHeight(); });
</script>

</html>